#!/usr/bin/env python
# -*- coding:utf-8 -*-
import functools
def log(text):
    def decorator(func):
        @functools.wraps(func)
        def wrapper():
            print "%s %s()" % (text,func.__name__)
            func()
            print "end"
        return wrapper
    return decorator

@log('exe')
def now():
    print "2015-11-18"

f=now
now()

print now.__name__
print f.__name__

